package com.mcxx.convert;

import com.mcxx.modules.miniSalvation.order.param.ActivitiParam;
import com.mcxx.modules.temporary.order.dto.TmpOrderDTO;
import com.mcxx.modules.temporary.order.dto.TmpAuditDTO;


public class ActivitiConvert {


    public static ActivitiParam convertActivitiParam(TmpAuditDTO tmpAuditDTO){

        ActivitiParam activitiParam = new ActivitiParam();

        activitiParam.setBusinessType(tmpAuditDTO.getBusinessType());

        activitiParam.setSalvMoney(tmpAuditDTO.getSalvMoney());

        activitiParam.setNowStep(tmpAuditDTO.getState());

        activitiParam.setNextCondition(tmpAuditDTO.getCheckResult());

        activitiParam.setStandType(tmpAuditDTO.getCensusType());

        return  activitiParam;
    }


    public static ActivitiParam convertActivitiParam(TmpOrderDTO orderDTO){

        ActivitiParam activitiParam = new ActivitiParam();

        activitiParam.setBusinessType(orderDTO.getBusinessType());

        activitiParam.setSalvMoney(orderDTO.getSalvMoney());

        activitiParam.setNowStep(orderDTO.getState());

        activitiParam.setNextCondition(orderDTO.getCheckResult());

        return  activitiParam;
    }
}
